package com.hsnn.medstgmini.pro.base.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hsnn.medstgmini.util.ParseNumber;

@Entity
@Table(name = "base_goods_item")
public class BaseGoods {
	private String goodsCode;
	private String projId;
	private String drugCode;
	private String drugCat;
	private Double proPriceLimit;
	private Double retailPriceLimit;
	private Short status;
	private Date updDatetime;
	private String updUser;
	private Short isLongTimePlan;
	
	//以下是非表字段
	private String drugName;
	private String formName;
	private String specName;
	private String factor;
	private String unit;
	private String qualityspecId;
	private String materialName;
	private String compName;
	private String compNamespel;
	private String compShortname;
	private Integer prodStatus;
	private String projectName;
	private String drugCatText;
	private String statusText;
	private String prodPompId;//生产企业id
	private String remark;
	private String projCode;
	private String proPriceLimitText;
	private String retailPriceLimitText;
	private String drugSource;
	private String delRelId;
	private String areaName;
	private String delCompName;
	private String delCompId;
	private String bakDrugFlagText;
	private String isLongTimePlanText;
	private Integer goodsSource;
	private String projName;
	private String catCompName;
	private Integer isLowprice;
	private Integer isSmallprice;
	private Integer isSmallsource;
	private String compCode;
	private String compId;
	private String hospId;
	private String hospCode;
	private String prodCode;
	private String delCode;
	private String appoveCode;
	private Integer priNum;
	private String unitId;//包装单位id
	private String unitCode;//包装单位code
	private String drugCatName;//药品分类名称
	@Transient
	public String getDelCompName() {
		return delCompName;
	}
	public void setDelCompName(String delCompName) {
		this.delCompName = delCompName;
	}
	@Id
	@Column(name = "goods_code")
	public String getGoodsCode() {
		return goodsCode;
	}
	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}
	@Column(name = "proj_id")
	public String getProjId() {
		return projId;
	}
	public void setProjId(String projId) {
		this.projId = projId;
	}
	@Column(name = "drug_code")
	public String getDrugId() {
		return drugCode;
	}
	public void setDrugId(String drugCode) {
		this.drugCode = drugCode;
	}
	@Column(name = "drug_cat")
	public String getDrugCat() {
		return drugCat;
	}
	public void setDrugCat(String drugCat) {
		this.drugCat = drugCat;
	}
	@Column(name = "pro_price_limit")
	public Double getProPriceLimit() {
		return proPriceLimit;
	}
	public void setProPriceLimit(Double proPriceLimit) {
		if(null != proPriceLimit){
		this.proPriceLimit = Double.valueOf(ParseNumber.toStrDecimal(proPriceLimit));
		}else{
			this.proPriceLimit = 0.00;
		}
	}
	@Column(name = "retail_price_limit")
	public Double getRetailPriceLimit() {
		return retailPriceLimit;
	}
	public void setRetailPriceLimit(Double retailPriceLimit) {
		this.retailPriceLimit = retailPriceLimit;
	}
	@Column(name = "status")
	public Short getStatus() {
		return status;
	}
	public void setStatus(Short status) {
		this.status = status;
	}
	@Column(name = "upd_datetime")
	public Date getUpdDatetime() {
		return updDatetime;
	}
	public void setUpdDatetime(Date updDatetime) {
		this.updDatetime = updDatetime;
	}
	@Column(name = "upd_user")
	public String getUpdUser() {
		return updUser;
	}
	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}
	

	
	@Column(name = "is_longtime_plan")
	public Short getIsLongTimePlan() {
		return isLongTimePlan;
	}

	public void setIsLongTimePlan(Short isLongTimePlan) {
		this.isLongTimePlan = isLongTimePlan;
	}
	
	@Transient
	public String getDrugName() {
		return drugName;
	}
	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}
	@Transient
	public String getFormName() {
		return formName;
	}
	public void setFormName(String formName) {
		this.formName = formName;
	}
	@Transient
	public String getSpecName() {
		return specName;
	}
	public void setSpecName(String specName) {
		this.specName = specName;
	}
	@Transient
	public String getFactor() {
		return factor;
	}
	public void setFactor(String factor) {
		this.factor = factor;
	}
	@Transient
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	@Transient
	public String getMaterialName() {
		return materialName;
	}
	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}
	@Transient
	public String getCompName() {
		return compName;
	}
	public void setCompName(String compName) {
		this.compName = compName;
	}
	@Transient
	public String getDrugCode() {
		return drugCode;
	}
	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}
	@Transient
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	@Transient
	public String getDrugCatText() {
		return drugCatText;
	}
	public void setDrugCatText(String drugCatText) {
		this.drugCatText = drugCatText;
	}
	@Transient
	public String getStatusText() {
		return statusText;
	}
	public void setStatusText(String statusText) {
		this.statusText = statusText;
	}
	@Transient
	public String getProdPompId() {
		return prodPompId;
	}
	public void setProdPompId(String prodPompId) {
		this.prodPompId = prodPompId;
	}
	@Transient
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Transient
	public String getProjCode() {
		return projCode;
	}
	public void setProjCode(String projCode) {
		this.projCode = projCode;
	}
	@Transient
	public String getProPriceLimitText() {
		return proPriceLimitText;
	}
	public void setProPriceLimitText(String proPriceLimitText) {
		this.proPriceLimitText = proPriceLimitText;
	}
	@Transient
	public String getRetailPriceLimitText() {
		return retailPriceLimitText;
	}
	public void setRetailPriceLimitText(String retailPriceLimitText) {
		this.retailPriceLimitText = retailPriceLimitText;
	}
	@Transient
	public String getDrugSource() {
		return drugSource;
	}
	public void setDrugSource(String drugSource) {
		this.drugSource = drugSource;
	}
	@Transient
	public String getDelRelId() {
		return delRelId;
	}
	public void setDelRelId(String delRelId) {
		this.delRelId = delRelId;
	}
	@Transient
	public String getAreaName() {
		return areaName;
	}
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	@Transient
	public String getBakDrugFlagText() {
		return bakDrugFlagText;
	}
	public void setBakDrugFlagText(String bakDrugFlagText) {
		this.bakDrugFlagText = bakDrugFlagText;
	}
	
	@Transient
	public String getIsLongTimePlanText() {
		return isLongTimePlanText;
	}
	public void setIsLongTimePlanText(String isLongTimePlanText) {
		this.isLongTimePlanText = isLongTimePlanText;
	}
	@Transient
	public String getDelCompId() {
		return delCompId;
	}
	public void setDelCompId(String delCompId) {
		this.delCompId = delCompId;
	}
	@Transient
	public Integer getGoodsSource() {
		return goodsSource;
	}
	public void setGoodsSource(Integer goodsSource) {
		this.goodsSource = goodsSource;
	}
	@Transient
	public String getProjName() {
		return projName;
	}
	public void setProjName(String projName) {
		this.projName = projName;
	}
	@Transient
	public String getCatCompName() {
		return catCompName;
	}
	public void setCatCompName(String catCompName) {
		this.catCompName = catCompName;
	}
	@Transient
	public Integer getIsLowprice() {
		return isLowprice;
	}
	public void setIsLowprice(Integer isLowprice) {
		this.isLowprice = isLowprice;
	}
	@Transient
	public Integer getIsSmallprice() {
		return isSmallprice;
	}
	public void setIsSmallprice(Integer isSmallprice) {
		this.isSmallprice = isSmallprice;
	}
	@Transient
	public Integer getIsSmallsource() {
		return isSmallsource;
	}
	public void setIsSmallsource(Integer isSmallsource) {
		this.isSmallsource = isSmallsource;
	}
	@Transient
	public String getCompCode() {
		return compCode;
	}
	public void setCompCode(String compCode) {
		this.compCode = compCode;
	}
	@Transient
	public String getCompId() {
		return compId;
	}
	public void setCompId(String compId) {
		this.compId = compId;
	}
	@Transient
	public String getHospId() {
		return hospId;
	}
	public void setHospId(String hospId) {
		this.hospId = hospId;
	}
	@Transient
	public String getHospCode() {
		return hospCode;
	}
	public void setHospCode(String hospCode) {
		this.hospCode = hospCode;
	}
	@Transient
	public String getProdCode() {
		return prodCode;
	}
	public void setProdCode(String prodCode) {
		this.prodCode = prodCode;
	}
	@Transient
	public String getDelCode() {
		return delCode;
	}
	public void setDelCode(String delCode) {
		this.delCode = delCode;
	}
	@Transient
	public String getAppoveCode() {
		return appoveCode;
	}
	public void setAppoveCode(String appoveCode) {
		this.appoveCode = appoveCode;
	}
	@Transient
	public Integer getPriNum() {
		return priNum;
	}
	public void setPriNum(Integer priNum) {
		this.priNum = priNum;
	}
	@Transient
	public String getQualityspecId() {
		return qualityspecId;
	}
	public void setQualityspecId(String qualityspecId) {
		this.qualityspecId = qualityspecId;
	}
	@Transient
	public String getUnitId() {
		return unitId;
	}
	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}
	@Transient
	public String getUnitCode() {
		return unitCode;
	}
	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}
	@Transient
	public String getDrugCatName() {
		return drugCatName;
	}
	public void setDrugCatName(String drugCatName) {
		this.drugCatName = drugCatName;
	}
	@Transient
	public String getCompNamespel() {
		return compNamespel;
	}
	public void setCompNamespel(String compNamespel) {
		this.compNamespel = compNamespel;
	}
	@Transient
	public Integer getProdStatus() {
		return prodStatus;
	}
	public void setProdStatus(Integer prodStatus) {
		this.prodStatus = prodStatus;
	}
	@Transient
	public String getCompShortname() {
		return compShortname;
	}
	public void setCompShortname(String compShortname) {
		this.compShortname = compShortname;
	}
	
	
}
